'''
Created on 2024年7月19日

@author: Administrator
'''

motorcycles = ['honda','yamaha','suzuki']
print(motorcycles)
motorcycles[0] = 'ducati'
print(motorcycles)

motorcycles.append('ducati')
print(motorcycles)

motorcycles.insert(0, 'xxx')
print(motorcycles)
motorcycles.insert(2,'yyy')
print(motorcycles)

del motorcycles[0]
print(motorcycles)

poped_motorcycle = motorcycles.pop()
print(motorcycles)
print(poped_motorcycle)

last_owned = motorcycles.pop()
print(f"The last motorcycle I owned was a {last_owned.title()}")

motorcycles.append('ducati')
print(motorcycles)
motorcycles.remove("ducati")
print(motorcycles)

